package org.smile.exception;

public class SmileException extends Exception {
	
	private static final long serialVersionUID = 0;
	
	protected Throwable cause;
	public SmileException(){
		super("smile exception");
	}
	public SmileException(String message,Throwable cause) {
		super(message);
		this.cause=cause;
	}
	public SmileException(Throwable cause) {
		super("smile exception "+cause.getMessage());
		this.cause = cause;
	}
	public SmileException(String message) {
		super("simle exception: "+message);
	}
	public Throwable getCause() {
		return this.cause;
	}
}
